<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <ui:composition template="templatecustomer.xhtml">
        <ui:define name="pagename">
            Car Details
        </ui:define>
        <ui:define name="content">
            <h:form>
                <ui:repeat value="#{listCarDetailsCustomerBean.listCarDetails}" var="car">
                    <table>
                        <tr><h1>#{car.carName}</h1></tr>

                        <tr>
                            <td><img width="150" height="150" alt="" src="../admin/#{car.images}" style="float:left;margin-right:20px;" /></td>
                            <td style="text-align: inherit">
                                #{car.description}
                                <br/>
                                <h:commandButton style="background-image: url(images/readmore.png);width: 80px;height: 34px" action="#{carBean.actionGetCarDetails(car.carID)}"></h:commandButton>
                            </td>
                        </tr>
                    </table>
                </ui:repeat>
            </h:form>
            <ui:repeat value="#{listCarDetailsCustomerBean.pageIndex}" var="index">
                <a href="listcardetails.xhtml?modelID=#{listCarDetailsCustomerBean.modelID}&amp;pageID=#{index}">#{index}</a>
            </ui:repeat>
        </ui:define>
    </ui:composition>
</html>

